import request from '../../utils/request.js'

// 获取教师上传过的视频
export function getMyVideo() {
    return request({
        url: '/video/getMyVideo',
        method: 'get'
    })
}

// 根据视频标题查询视频
export function searchVideoByTitle(title) {
    return request({
        url: '/video/searchVideoByTitle?title=' + title,
        method: 'get'
    })
}

// 获取最近7日视频的收藏量和播放量
export function getRecentVideoDetail() {
    return request({
        url: '/video/getRecentDayVideoDetail',
        method: 'get'
    })
}